package cqie.edu.bootexperiment3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cqie.edu.bootexperiment3.domain.TOrder;
import org.apache.ibatis.annotations.Insert;

import java.util.List;


/**
* @author 86182
* @description 针对表【t_order】的数据库操作Mapper
* @createDate 2025-03-25 11:50:21
* @Entity cqie.edu.bootexperiment3.domain.TOrder
*/
public interface TOrderMapper extends BaseMapper<TOrder> {
    //229970608 何慧君
    @Insert("INSERT INTO t_order(id, order_no, price, customer_id)" +
            "VALUES (#{id}, #{orderNo}, #{price}, #{customerId})")
    int insertOrder(TOrder order);


    List<TOrder> selectOrders();

}




